<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>伪类选择器</title>
    <style>
        /*未访问时的样式*/
        a:link{
            color:blue;
        }
        /*已访问过的样式*/
        a:visited{
            color:purple;
        }
        /*鼠标悬停的样式*/
        a:hover{
            color:green;
        }
        /*鼠标按下未松开时的样式*/
        a:active{
            color: red;
        }
        div{
            width:200px;
            height: 100px;
            background-color: red;
        }
        div:hover{
            background-color:green;
        }
        div:active{
            background-color: blue;
        }
    </style>
</head>
<body>
<a href="#">超链接</a>
<div></div>
</body>
</html>